import { request } from './base';

export const userApi = {
  login: request({
    url: 'login/loginIn',
    method: 'POST',
  }),
  googleAuthenticator: request({
    url: 'login/googleAuthenticator',
    method: 'GET',
  }),
  loginOut: request({
    url: '/login/loginOut',
    method: 'POST',
  }),
  isGoogleAuthenticator: (username) =>
    request({
      url: `/login/isGoogleAuthenticator/${username}`,
      method: 'GET',
    })(),
};
